package com.corecloud.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.corecloud.entity.SysDepartmentEntity;

import java.util.List;


public interface SysDepartmentService {
    /**
     * 根据条件查询信息-分页
     * @param page
     * @param qw
     * @return
     */
    Page<SysDepartmentEntity> getInfoByPage(Page page, QueryWrapper<SysDepartmentEntity> qw);


    /**
     * 通过id查找名称
     * @param id
     * @return
     */
    String findNameById(long id);

    List<SysDepartmentEntity> getAll();

}
